home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / XAPreferences.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.4 KB  |  47 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.ApplicationPreferences;
  4. import com.extensibility.app.UI;
  5. import java.util.Hashtable;
  6.  
  7. public class XAPreferences extends ApplicationPreferences {
  8.    public static final String DEFAULT_SCHEMA_FLAVOR = "DEFAULT.SCHEMA.FLAVOR";
  9.  
  10.    public boolean getShowOverview() {
  11.       return ((ApplicationPreferences)this).getShowLeftPane();
  12.    }
  13.  
  14.    public void updateShowOverview(boolean var1) {
  15.       ((ApplicationPreferences)this).updateShowLeftPane(var1);
  16.    }
  17.  
  18.    public boolean getShowComment() {
  19.       return ((ApplicationPreferences)this).getShowBottomPane();
  20.    }
  21.  
  22.    public void updateShowComment(boolean var1) {
  23.       ((ApplicationPreferences)this).updateShowBottomPane(var1);
  24.    }
  25.  
  26.    public String getDefaultFileType() {
  27.       return this.getDefaultSchemaFlavor();
  28.    }
  29.  
  30.    public void updateDefaultFileType(String var1) {
  31.       this.updateDefaultSchemaFlavor(var1);
  32.    }
  33.  
  34.    public String getDefaultSchemaFlavor() {
  35.       String var1 = (String)((Hashtable)this).get("DEFAULT.SCHEMA.FLAVOR");
  36.       if (var1 == null) {
  37.          var1 = UI.getString("com.extensibility.xa.schema.defaultflavor");
  38.       }
  39.  
  40.       return var1;
  41.    }
  42.  
  43.    public void updateDefaultSchemaFlavor(String var1) {
  44.       ((Hashtable)this).put("DEFAULT.SCHEMA.FLAVOR", var1);
  45.    }
  46. }
  47.